Skip to content

Logical dns: moving to an extension#23799

Merged
alyssawilk merged 3 commits intoenvoyproxy:mainfrom
alyssawilk:logical_dns
Nov 8, 2022
Merged

Logical dns: moving to an extension#23799
alyssawilk merged 3 commits intoenvoyproxy:mainfrom
alyssawilk:logical_dns

Conversation

@alyssawilk
Copy link
Contributor

@alyssawilk alyssawilk commented Nov 2, 2022

Any Envoy users who customize their pre-built extensions will need to evaluate if they need this cluster.
Akin to #23694

Risk Level: medium
Testing: n/a
Docs Changes: n/a
Release Notes: inline

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@repokitteh-read-only
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #23799 was opened by alyssawilk.

see: more, trace.

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
@alyssawilk alyssawilk marked this pull request as ready for review November 3, 2022 13:25
@alyssawilk alyssawilk enabled auto-merge (squash) November 3, 2022 13:27
Copy link
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, left a few questions/comments.

envoy.clusters.logical_dns:
categories:
- envoy.clusters
security_posture: requires_trusted_downstream_and_upstream
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the right posture? I was under the impression that as part of core clusters it was "robust_to_untrusted_downstream_and_upstream", but maybe I'm wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch thanks, fixed.

"//source/common/api:api_lib",
"//source/exe:envoy_main_common_with_core_extensions_lib",
"//source/exe:platform_impl_lib",
"//source/extensions/clusters/logical_dns:logical_dns_cluster_lib",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... I wonder if this target can be built w/o reliance on source/extensions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, there's already a number of registered extensions such as source/extensions/transport_sockets/raw_buffer/config.h that envoy won't build without

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that said this is why we have the visibility rules and an extra presubmit around extensions not generally being visible to core tests. so it's a pretty well cross-checked system :-)

":http_protocol_integration_lib",
":socket_interface_swap_lib",
"//source/common/http:header_map_lib",
"//source/extensions/clusters/logical_dns:logical_dns_cluster_lib",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar question to the //test/exe:main_common_test target.
I guess it is ok because these are tests, but wonder if the extension is inherent to the tests functionality or is it testing non-core functionality (and then the test itself may be moved to the be part of the extension's tests)?

Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
Copy link
Contributor

@adisuissa adisuissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@KBaichoo
Copy link
Contributor

KBaichoo commented Nov 8, 2022

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #23799 (comment) was created by @KBaichoo.

see: more, trace.

@alyssawilk alyssawilk merged commit e4ae225 into envoyproxy:main Nov 8, 2022
@alyssawilk alyssawilk deleted the logical_dns branch April 5, 2023 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants